#ifndef GX_TOUCH_DRIVER_H
#define GX_TOUCH_DRIVER_H
#include   "tx_api.h"
#include   "gx_api.h"
#include   "gx_system.h"
#include   "gx_display.h"
#include   "stdint.h"

#define TOUCH_STATE_TOUCHED  1
#define TOUCH_STATE_RELEASED 2

struct mouse_data
{
    uint8_t flag;
    uint8_t press;
    uint16_t x;
    uint16_t y;
};
typedef struct
{
  uint8_t  touchDetected;                /*!< Total number of active touches detected at last scan */
  uint16_t touchX;      /*!< Touch X[0], X[1] coordinates on 12 bits */
  uint16_t touchY;      /*!< Touch Y[0], Y[1] coordinates on 12 bits */

} TS_StateTypeDef;

VOID  touch_thread_entry(ULONG thread_input);
#endif
